//
//  Device.m
//  Portable Reader
//
//  Created by Chris Karr on 7/10/08.
//  Copyright 2008 Northwestern University. All rights reserved.
//

#import "Device.h"


@implementation Device

@synthesize name;
@synthesize files;
@synthesize properties;
@synthesize lastRefresh;

- (id) init
{
	if (self = [super init])
	{
		self.name = NSLocalizedString (@"Generic Reader Device", nil);
		self.files = [NSMutableArray array];
		self.properties = [NSMutableDictionary dictionary];
		
		[self refresh];
	}
	
	return self;
}

- (void) refresh
{
	self.lastRefresh = [NSDate date];
}

- (BOOL) canRead:(NSDictionary *) file
{
	return NO;
}

- (BOOL) installFile:(NSDictionary *) file
{
	return NO;
}

@end
